package com.wyg.blog.model.blog;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @description:
 * @author: WYG
 * @time: 2020/7/2 21:03
 */

public class Essay implements Serializable {
    private Integer id;
    private String author;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date create_time;
    private String title;
    private Integer views;
    private Integer likes;
    private String first_picture;
    private String description;
    private boolean published;
    private String content;
    private Integer uid;

    public Essay() {}

    public Essay(Integer id, String author, Date create_time, String title, Integer views, Integer likes, String first_picture, String description, boolean published, String content, Integer uid) {
        this.id = id;
        this.author = author;
        this.create_time = create_time;
        this.title = title;
        this.views = views;
        this.likes = likes;
        this.first_picture = first_picture;
        this.description = description;
        this.published = published;
        this.content = content;
        this.uid = uid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getViews() {
        return views;
    }

    public void setViews(Integer views) {
        this.views = views;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public String getFirst_picture() {
        return first_picture;
    }

    public void setFirst_picture(String first_picture) {
        this.first_picture = first_picture;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isPublished() {
        return published;
    }

    public void setPublished(boolean published) {
        this.published = published;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }
}
